package com.example.common.enumclass;

/**
 * 登入模块枚举类
 * 用于提示错误信息
 */
public enum ResultCode {
    UNAUTHORIZED(401, "未授权访问");


    private final int code; // 状态码
    private final String message; // 状态码信息

    ResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
